<template>
 <div class="SpecialOne">
     <header @click="$router.go(-1)">专栏列表</header>
     <div class="SpecialOne-box">
         <h3>{{obj.title}}</h3>
         <img :src="obj.pic" alt="">
         <span v-html="obj.content"></span>
     </div>
 </div>
</template>

<script>
export default {
  name: "",
  data() {
    return {
      obj: {}
    };
  },
  async mounted() {
    var id = this.$route.query.id;
    //   console.log(id);
    let { data: res } = await this.$http.get(
      `https://api.it120.cc/small4/cms/news/detail?id=` + id
    );
    // console.log(res);
    this.obj = res.data;
  },
  methods: {},
  computed: {},
  watch: {}
};
</script>

<style scoped>
.SpecialOne {
  width: 100%;
  overflow: hidden;
}
header {
  width: 100%;
  height: 50px;
  line-height: 50px;
  position: fixed;
  top: 0;
  left: 0;
  text-align: center;
  background-color: white;
}
img {
  width: 350px;
  height: 225px;
}
.SpecialOne-box {
  width: 100%;
  height: 100%;
  margin-top: 50px;
  padding: 0 10px 0 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
</style>